package com.yaorange.service.impl;

import com.yaorange.entity.Article;
import com.yaorange.entity.ArticleType;
import com.yaorange.mapper.ArticleTypeMapper;
import com.yaorange.service.ArticleTypeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @description:
 * @company: yaorange
 * @author: 啊啊啊林
 * @version: 1.0
 * @create: 2021-09-23 17:31:43
 */
@Service
@Transactional//声明事务
public class ArticleTypeServiceImpl implements ArticleTypeService {
    @Resource
    private ArticleTypeMapper articleTypeMapper;


    @Override
    public List<ArticleType> findAll() {
        List<ArticleType> articleTypes = articleTypeMapper.selectAll();
        return articleTypes;
    }

}
